<div ng-if="!user.isLogin" class="navbar-header">
    <!-- <avatar></avatar> -->
    <a @click="popup('#/user/login',true)" class="dashboard_text">请登录</a>
</div>
<div -else class="navbar-header">
    <span class="dashboard_text" @click="popup('#/user/profile')">
        <avatar ng-src="user.avatar" size=30></avatar>
        <span ng-bind="user.name"></span>
        <span ng-bind="user.roles"></span>
    </span>
</div>
<ylist mode=inline ng-src="menu in menus" class="sidebar-menu" ng-active="menus.open(event.value)">
</ylist>
<!-- <btn class="setting" actived_="menus.active?.id==='setting'" ng-click="popup('#/user/setting')">
    <i class="fa fa-gear"></i>设置
</btn> -->